home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
IRIX Base Documentation 1998 November
/
IRIX 6.5.2 Base Documentation November 1998.img
/
usr
/
share
/
catman
/
u_man
/
cat1
/
tty.z
/
tty
Wrap
Text File
|
1998-10-20
|
1KB
|
67 lines
TTTTTTTTYYYY((((1111)))) TTTTTTTTYYYY((((1111))))
NNNNAAAAMMMMEEEE
tty - get the name of the terminal
SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
ttttttttyyyy [ ----llll ] [ ----ssss ]
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
_t_t_y prints the path name of the user's terminal.
----llll prints the synchronous line number to which the user's terminal is
connected, if it is on an active synchronous line.
----ssss inhibits printing of the terminal path name, allowing one to test
just the exit code.
EXIT CODES
2 if invalid options were specified,
0 if standard input is a terminal,
1 otherwise.
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
``not on an active synchronous line'' if the standard input is not a
synchronous terminal and ----llll is specified.
``not a tty'' if the standard input is not a terminal and ----ssss is not
specified.
PPPPaaaaggggeeee 1111